export enum DeleteRes {
  未删除,
  已删除,
}

export enum MediaType {
  元素,
  人物,
  图标,
  图像,
  关键字,
}

export type MediaInfoItem = {
  is_delete: DeleteRes;
  media_info_id: number;
  pattern_detail_id: number;
  pattern_id: number;
  url: string;
};

export type BusinessItemListInfo = {
  coordinate: string;
  exclude?: string[];
  include?: string[];
  is_delete: DeleteRes;
  media_info_list: MediaInfoItem[];
  media_type: MediaType;
  pattern_detail_id: number;
  pattern_id: number;
  threshold_max: number;
  threshold_min: number;
  title: string;
  score: number;
};

export type BusinessItemInfo = {
  gmt_create: string;
  element_list: BusinessItemListInfo[];
  element_short_info: string;
  logo_list: BusinessItemListInfo[];
  logo_list_info: string;
  pattern_id: number;
  image_list: BusinessItemListInfo[];
  image_short_info: string;
  is_deleted: DeleteRes;
  key_word_list: BusinessItemListInfo[];
  key_word_short_info: string;
  face_list: BusinessItemListInfo[];
  face_short_info: string;
  remark: string;
  title: string;
  total_score: number;
};


export type ElementItem = {
  customId?: string
  media_type: string
  sub_tag_id: number
  sub_tag_list: ElementItem[]
  tag_id: number
  title: string
  url: string
  threshold: number
  score: number
}
